package com.tim.helper;

import org.junit.After;
import org.junit.Before;
// 计时测试模板类
public class CountRuntime {
    Long start = System.currentTimeMillis();

    @Before// 子类重写后失效
    public void countRuntimeBefore() throws Exception {

    }

    @After
    public void countRuntimeAfter() throws Exception {
        System.out.println(String.format("运行时间：%sms", System.currentTimeMillis()-start));
    }
}
